import {http} from '@/common/service/interceptors.js';
import Request from '@/common/service/request.js';

const httpUp = new Request()

/**账号密码登录**/
export function login(params){
	return http.post('/auth/appLogin',params)
}


/**手机验证码登录**/
export function smsLogin(params){
	return http.post('/auth/wxSmsLogin',params)
}

/**发送手机验证码**/
export function smsSend(param){
	return http.get('/resource/sms/code?',{params:param})
}

/**退出登录**/
export function logout(){
	return http.post('/auth/logout')
}

/**查询用户个人信息**/
export function getUserInfo(param){
	return http.get('/system/socialUser/getUserInfo?',{params:param})
}


/**短信验证手机号**/
export function validateSmsCode(params){
	return http.post('/system/socialUser/validateSmsCode',params)
}

